/*
 * @Description: 与后台接口对接
 * @Author: Ronda
 * @Date: 2022-05-13 19:38:20
 * @LastEditors: Jeremy
 * @LastEditTime: 2022-05-17 15:16:46
 */
// 引入axios
import { get } from '@/http/axios.js'

/**
 * @description: 查询启用的轮播图
 * @param {*}
 * @return {*}
 */
export function queryCarousel() {
  return get('/carousel/query', { status: '正常' })
}

// 分页查询产品分类
// pageQueryProductCategory方法的声明
export function pageQueryProductCategory(data) {
  // data = {page:1,pageSize:5}
  return get('/productCategory/pageQuery', data)
}

// 分页查询产品
export function pageQueryProduct(data) {
  return get('/product/pageQuery', data)
}

//确认订单数据
export function pageQueryOrder(data) {
  return get('/order/pageQuery', data)
}

export function findByIdOrder(data) {
  return get('/order/findById', data)
}



